package org.alanlau.springredis.repository;

import org.alanlau.springredis.entity.Person;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Person dao层
 *
 * @author Alan
 * @data 2019/10/13 20:07
 */
public interface PersonRepository extends CrudRepository<Person, String> {
    //name属性必须添加索引
    List<Person> findByName(String name);
}
